<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>zdma: xzdma_linkedlist_example.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.gif"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">zdma
   </div>
   <div id="projectbrief">Xilinx SDK Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xzdma__linkedlist__example_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">xzdma_linkedlist_example.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<div class="textblock"><p>This file contains the example using <a class="el" href="struct_x_z_dma.html" title="The XZDma driver instance data structure. ">XZDma</a> driver to do data transfer in Linked list mode on ZDMA device. </p>
<pre>
MODIFICATION HISTORY:</pre><pre>Ver   Who     Date     Changes
<hr/>

1.0   vns     2/27/15  First release
</pre> </div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ac9ee5466315bffe06cf3bcfc881c3792"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xzdma__linkedlist__example_8c.html#ac9ee5466315bffe06cf3bcfc881c3792">ZDMA_INTC_DEVICE_ID</a>&#160;&#160;&#160;XPAR_SCUGIC_SINGLE_DEVICE_ID</td></tr>
<tr class="memdesc:ac9ee5466315bffe06cf3bcfc881c3792"><td class="mdescLeft">&#160;</td><td class="mdescRight">SCUGIC Device ID.  <a href="#ac9ee5466315bffe06cf3bcfc881c3792">More...</a><br /></td></tr>
<tr class="separator:ac9ee5466315bffe06cf3bcfc881c3792"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80bbbb5d429ca6bd067fe2e4bdb95725"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xzdma__linkedlist__example_8c.html#a80bbbb5d429ca6bd067fe2e4bdb95725">ZDMA_INTR_DEVICE_ID</a>&#160;&#160;&#160;XPAR_XADMAPS_0_INTR</td></tr>
<tr class="memdesc:a80bbbb5d429ca6bd067fe2e4bdb95725"><td class="mdescLeft">&#160;</td><td class="mdescRight">ZDMA Interrupt Id.  <a href="#a80bbbb5d429ca6bd067fe2e4bdb95725">More...</a><br /></td></tr>
<tr class="separator:a80bbbb5d429ca6bd067fe2e4bdb95725"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adaf6a77833a7088acd6ba18d7466ac59"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xzdma__linkedlist__example_8c.html#adaf6a77833a7088acd6ba18d7466ac59">TESTDATA1</a>&#160;&#160;&#160;0xABCD1230</td></tr>
<tr class="memdesc:adaf6a77833a7088acd6ba18d7466ac59"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test data.  <a href="#adaf6a77833a7088acd6ba18d7466ac59">More...</a><br /></td></tr>
<tr class="separator:adaf6a77833a7088acd6ba18d7466ac59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32bbf61a3a6cafc997ccb8f449ba8f4c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xzdma__linkedlist__example_8c.html#a32bbf61a3a6cafc997ccb8f449ba8f4c">TESTDATA2</a>&#160;&#160;&#160;0x00005000</td></tr>
<tr class="memdesc:a32bbf61a3a6cafc997ccb8f449ba8f4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test data.  <a href="#a32bbf61a3a6cafc997ccb8f449ba8f4c">More...</a><br /></td></tr>
<tr class="separator:a32bbf61a3a6cafc997ccb8f449ba8f4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a4760deea4e054235c55a504187d96988"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xzdma__linkedlist__example_8c.html#a4760deea4e054235c55a504187d96988">XZDma_LinkedListExample</a> (u16 DeviceId)</td></tr>
<tr class="memdesc:a4760deea4e054235c55a504187d96988"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function does a test of the data transfer in linked mode on the ZDMA driver.  <a href="#a4760deea4e054235c55a504187d96988">More...</a><br /></td></tr>
<tr class="separator:a4760deea4e054235c55a504187d96988"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a840291bc02cba5474a4cb46a9b9566fe"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xzdma__linkedlist__example_8c.html#a840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
<tr class="memdesc:a840291bc02cba5474a4cb46a9b9566fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Main function to call the example.  <a href="#a840291bc02cba5474a4cb46a9b9566fe">More...</a><br /></td></tr>
<tr class="separator:a840291bc02cba5474a4cb46a9b9566fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a7e9d669b081d5a33d1deada2d6f07a63"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_x_z_dma.html">XZDma</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xzdma__linkedlist__example_8c.html#a7e9d669b081d5a33d1deada2d6f07a63">ZDma</a></td></tr>
<tr class="memdesc:a7e9d669b081d5a33d1deada2d6f07a63"><td class="mdescLeft">&#160;</td><td class="mdescRight">Instance of the ZDMA Device.  <a href="#a7e9d669b081d5a33d1deada2d6f07a63">More...</a><br /></td></tr>
<tr class="separator:a7e9d669b081d5a33d1deada2d6f07a63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac9b9dd3f01c78843949f1b0dd37b80c"><td class="memItemLeft" align="right" valign="top">XScuGic&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xzdma__linkedlist__example_8c.html#aac9b9dd3f01c78843949f1b0dd37b80c">Intc</a></td></tr>
<tr class="memdesc:aac9b9dd3f01c78843949f1b0dd37b80c"><td class="mdescLeft">&#160;</td><td class="mdescRight">XIntc Instance.  <a href="#aac9b9dd3f01c78843949f1b0dd37b80c">More...</a><br /></td></tr>
<tr class="separator:aac9b9dd3f01c78843949f1b0dd37b80c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59e16903c7e3357c0940580da9d6a134"><td class="memItemLeft" align="right" valign="top">u32 *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xzdma__linkedlist__example_8c.html#a59e16903c7e3357c0940580da9d6a134">Src1Buf</a> = (u32 *)0x500000</td></tr>
<tr class="memdesc:a59e16903c7e3357c0940580da9d6a134"><td class="mdescLeft">&#160;</td><td class="mdescRight">Source buffer.  <a href="#a59e16903c7e3357c0940580da9d6a134">More...</a><br /></td></tr>
<tr class="separator:a59e16903c7e3357c0940580da9d6a134"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accf4b73055cc1729903dce40f5a3ca8e"><td class="memItemLeft" align="right" valign="top">u32 *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xzdma__linkedlist__example_8c.html#accf4b73055cc1729903dce40f5a3ca8e">Dst1Buf</a> = (u32 *)0x800000</td></tr>
<tr class="memdesc:accf4b73055cc1729903dce40f5a3ca8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destination buffer.  <a href="#accf4b73055cc1729903dce40f5a3ca8e">More...</a><br /></td></tr>
<tr class="separator:accf4b73055cc1729903dce40f5a3ca8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="adaf6a77833a7088acd6ba18d7466ac59"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adaf6a77833a7088acd6ba18d7466ac59">&#9670;&nbsp;</a></span>TESTDATA1</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TESTDATA1&#160;&#160;&#160;0xABCD1230</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test data. </p>

<p class="reference">Referenced by <a class="el" href="xzdma__linkedlist__example_8c.html#a4760deea4e054235c55a504187d96988">XZDma_LinkedListExample()</a>.</p>

</div>
</div>
<a id="a32bbf61a3a6cafc997ccb8f449ba8f4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32bbf61a3a6cafc997ccb8f449ba8f4c">&#9670;&nbsp;</a></span>TESTDATA2</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TESTDATA2&#160;&#160;&#160;0x00005000</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test data. </p>

<p class="reference">Referenced by <a class="el" href="xzdma__linkedlist__example_8c.html#a4760deea4e054235c55a504187d96988">XZDma_LinkedListExample()</a>.</p>

</div>
</div>
<a id="ac9ee5466315bffe06cf3bcfc881c3792"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9ee5466315bffe06cf3bcfc881c3792">&#9670;&nbsp;</a></span>ZDMA_INTC_DEVICE_ID</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ZDMA_INTC_DEVICE_ID&#160;&#160;&#160;XPAR_SCUGIC_SINGLE_DEVICE_ID</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SCUGIC Device ID. </p>

</div>
</div>
<a id="a80bbbb5d429ca6bd067fe2e4bdb95725"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80bbbb5d429ca6bd067fe2e4bdb95725">&#9670;&nbsp;</a></span>ZDMA_INTR_DEVICE_ID</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ZDMA_INTR_DEVICE_ID&#160;&#160;&#160;XPAR_XADMAPS_0_INTR</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ZDMA Interrupt Id. </p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a840291bc02cba5474a4cb46a9b9566fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a840291bc02cba5474a4cb46a9b9566fe">&#9670;&nbsp;</a></span>main()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Main function to call the example. </p>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS if successful.</li>
<li>XST_FAILURE if failed.</li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p class="reference">References <a class="el" href="xzdma__linkedlist__example_8c.html#a4760deea4e054235c55a504187d96988">XZDma_LinkedListExample()</a>.</p>

</div>
</div>
<a id="a4760deea4e054235c55a504187d96988"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4760deea4e054235c55a504187d96988">&#9670;&nbsp;</a></span>XZDma_LinkedListExample()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XZDma_LinkedListExample </td>
          <td>(</td>
          <td class="paramtype">u16&#160;</td>
          <td class="paramname"><em>DeviceId</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function does a test of the data transfer in linked mode on the ZDMA driver. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">DeviceId</td><td>is the XPAR_&lt;ZDMA Instance&gt;_DEVICE_ID value from xparameters.h.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS if successful.</li>
<li>XST_FAILURE if failed.</li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>
<p>&lt; Configuration values </p>

<p class="reference">References <a class="el" href="struct_x_z_dma___config.html#a9be2f556ef1ee02397fb358f06aa5366">XZDma_Config::BaseAddress</a>, <a class="el" href="xzdma__writeonlymode__example_8c.html#a19913a1f36801c805d1bfe220061084c">SrcBuf</a>, <a class="el" href="xzdma__linkedlist__example_8c.html#adaf6a77833a7088acd6ba18d7466ac59">TESTDATA1</a>, <a class="el" href="xzdma__linkedlist__example_8c.html#a32bbf61a3a6cafc997ccb8f449ba8f4c">TESTDATA2</a>, <a class="el" href="group__zdma__v1__0.html#gad882e6d7430871e5b71643c8be2512d5">XZDma_CfgInitialize()</a>, <a class="el" href="group__zdma__v1__0.html#ga4f701b228ebc77f96faaba09cd9c63db">XZDma_CreateBDList()</a>, <a class="el" href="group__zdma__v1__0.html#gga37a3c751884020089469a54e242ff4cdaaffcfeb2b42f83e2654e1d58d609f0ab">XZDMA_HANDLER_DONE</a>, <a class="el" href="group__zdma__v1__0.html#gga8deecd1bc1f130b591748afb1790a013ac4b925288997818ea5ce2be83f8cbfba">XZDMA_LINKEDLIST</a>, <a class="el" href="group__zdma__v1__0.html#ga3de69499d007ed840aa3b95fe9b63354">XZDma_LookupConfig()</a>, <a class="el" href="group__zdma__v1__0.html#gga84e5ba98d56dac2078e4bc68d5b5ab92acfd0a78e43b38febc3d4985a8b62efa5">XZDMA_NORMAL_MODE</a>, <a class="el" href="group__zdma__v1__0.html#ga166edb355a4395294e7910c68f4840ca">XZDma_SelfTest()</a>, <a class="el" href="group__zdma__v1__0.html#ga78a9c500b9c87963f7695fc5edf87a21">XZDma_SetCallBack()</a>, and <a class="el" href="group__zdma__v1__0.html#gaf1772f190fe0a67a17c78f5f23fc8024">XZDma_SetMode()</a>.</p>

<p class="reference">Referenced by <a class="el" href="xzdma__linkedlist__example_8c.html#a840291bc02cba5474a4cb46a9b9566fe">main()</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="accf4b73055cc1729903dce40f5a3ca8e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#accf4b73055cc1729903dce40f5a3ca8e">&#9670;&nbsp;</a></span>Dst1Buf</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 Dst1Buf = (u32 *)0x800000</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destination buffer. </p>

</div>
</div>
<a id="aac9b9dd3f01c78843949f1b0dd37b80c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac9b9dd3f01c78843949f1b0dd37b80c">&#9670;&nbsp;</a></span>Intc</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">XScuGic Intc</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>XIntc Instance. </p>

</div>
</div>
<a id="a59e16903c7e3357c0940580da9d6a134"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59e16903c7e3357c0940580da9d6a134">&#9670;&nbsp;</a></span>Src1Buf</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 Src1Buf = (u32 *)0x500000</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Source buffer. </p>

<p class="reference">Referenced by <a class="el" href="xzdma__linear__example_8c.html#a4d3f40edf2d265f5df9a045f27ba5ff5">XZDma_LinearExample()</a>.</p>

</div>
</div>
<a id="a7e9d669b081d5a33d1deada2d6f07a63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e9d669b081d5a33d1deada2d6f07a63">&#9670;&nbsp;</a></span>ZDma</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_x_z_dma.html">XZDma</a> ZDma</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Instance of the ZDMA Device. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Copyright &copy; 2015 Xilinx Inc. All rights reserved.</li>
  </ul>
</div>
</body>
</html>
